﻿using System;
using System.Globalization;
using System.Windows.Data;
using SuppKids.Licensing.LicenseManager.Extensions;

namespace SuppKids.Licensing.LicenseManager.Converters
{
    public class EnumToLocalizedValueConverter:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value.GetLocalizedEnumValue();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return default(Enum);
        }
    }
}